/*
 * Subimage.h
 *
 *  Created on: 04.09.2012
 *      Author: Axel
 */

#ifndef SUBIMAGE_H_
#define SUBIMAGE_H_

#include "Bitmap.h"
using namespace std;

class Subimage {
public:
	Bitmap* bitmap;
	RECT position;


	Subimage();
	Subimage(Bitmap* bmp, RECT pos);


	RGBTRIPLE getPixel(int x, int y);
	void writeBitmap(string path);

	virtual ~Subimage();
};

#endif /* SUBIMAGE_H_ */
